{% trans_default_domain 'FOSUserBundle' %}

<form action="{{ path('fos_user_resetting_send_email') }}" method="POST" class="fos_user_resetting_request">
    {% if invalid_username is defined %}
        <div class="form-group" style="color: red;">
            {{ 'resetting.request.invalid_username'|trans({'%username%': invalid_username}) }}
        </div>
    {% endif %}
    <div class="form-group">
        <label for="username">{{ 'resetting.request.username'|trans }}</label>
        <input type="text" class="form-control" id="username" name="username" required="required" />
    </div>
    <div class="form-group">
        <input class="btn" type="submit" value="{{ 'resetting.request.submit'|trans }}" />
    </div>
</form>
